-- GENERATED SPELL FOR [Arcane Protector] --


function spell0_16504(pUnit, Event) --@Fist of Stone,Self--
pUnit:FullCastSpellOnTarget(29840,pUnit)
pUnit:RegisterEvent('Sorts_16504', 2000, 1)
end

function Sorts_16504(pUnit, Event)
local choix_sorts_16504 = math.random(0, 0)
if choix_sorts_16504 == 0 then
pUnit:RegisterEvent('spell0_16504', 1, 1)
end
end

function mob16504_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16504', math.random(1500, 3000), 1)
end

function mob16504_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16504_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16504_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16504, 1, 'mob16504_Action')
RegisterUnitEvent(16504, 2, 'mob16504_Leave')
RegisterUnitEvent(16504, 3, 'mob16504_Kill')
RegisterUnitEvent(16504, 4, 'mob16504_Die')
